package com.hnevc.mycartingapp;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;

import androidx.appcompat.app.AppCompatActivity;

import com.hnevc.mycartingapp.activity.DetailsActivity;

public class MainActivity extends AppCompatActivity {

    private ListView carting_listview;
    private ImageView tiaozhuan;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        initdata();
    }

    private void initdata() {


    }

    private void initView() {
        carting_listview = (ListView) findViewById(R.id.carting_listview);
        tiaozhuan = (ImageView) findViewById(R.id.tiaozhuan);
        tiaozhuan.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, DetailsActivity.class));
            }
        });
    }
}